|
|
|
|
|
|
|
Figure 11.10.
A list of the custom control's properties are displayed for
selection. |
|
|
|
|
|
|
|
|
Select the properties you want on this page and add them to the list on the right side of the dialog box. |
|
|
|
|
|
|
|
|
Note Adding too many properties will clutter up the page and make it hard to use. |
|
|
|
|
|
|
|
|
|
Now click Finish to complete the process. Congratulations! You've created an ActiveX control and added a property page to it. |
|
|
|
|
|
|
|
|
The way the control is defined allows you to place it on a form in a standard project, set its properties, execute its methods, and see how the default process works. |
|
|
|
|
|
|
|
|
Note You can't run an ActiveX control by choosing Debug, Run from the menu. |
|
|
|
|
|
|
|
|
|
Depending on which version of Visual Basic you're using, you can test this new control in two ways: |
|
|
|
 |
|
|
|
|
By compiling the new control, starting a new Standard EXE project (Standard Edition users will have to start Visual Basic's Standard Edition), and dropping the control into that new project |
|
|
|
|
|